#include"CRectangle.h"
CRectangle::CRectangle() :width(3), height(10){
}
CRectangle::CRectangle(double height, double width){
	this->width=width;
	this->height=height;
}
CRectangle::CRectangle(const CRectangle & rect){
	this->height = rect.getHeight();
	this->width = rect.getWidth();
}
CRectangle::~CRectangle(){
}
double CRectangle::getArea()const{
	return width*height;
}
double CRectangle::getWidth()const{
	return width;
}
void CRectangle::setWidth(double width){
	this->width = width;
}
double CRectangle::getHeight()const{
	return height;
}
void CRectangle::setHeight(double height){
	this->height = height;
}
const CRectangle & CRectangle::operator++(){
	++width;
	++height;
	return *this;
}

